package com.kewu.system.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.kewu.system.api.entity.SysUser;
import com.kewu.system.dao.TestDao;
import com.kewu.system.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wangning
 * @create 2024-05-27-16:52
 */
@Service
@RequiredArgsConstructor
public class TestServiceImpl implements TestService {
    private final TestDao testDao;

    @Override
    public PageInfo<SysUser> list() {
        PageHelper.startPage(1, 10);
        return new PageInfo<>(testDao.selectList(null));
    }
}
